home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v8n07.arc / STRING2.BAS < prev    next >
BASIC Source File  |  1989-03-13  |  202b  |  11 lines

  1. DEFINT A-Z
  2. a = ASC(search$)
  3. FOR i = 1 TO n
  4.   IF a = ASC(array$(i)) THEN
  5.      IF search$ = array$(i) THEN
  6.        PRINT search$; " found at element"; i
  7.        EXIT FOR
  8.      END IF
  9.   END IF
  10. NEXT
  11.